package experiment9;

import java.io.*;
import java.util.Scanner;

public class No_1 {
    public static void main(String []args) throws IOException {

        String filepath=args[1];
        String str=args[0];


        File file=new File(filepath);
        BufferedReader reader=new BufferedReader(new FileReader(file));
        String string=reader.readLine();
        string=string.replace(str,"");

        OutputStream outputStream=new FileOutputStream(filepath);
        outputStream.write(string.getBytes());
        outputStream.close();
    }
}
